#if !defined(AFX_MEGADRAWERORGANIZE_H__7212CEBD_696C_47E0_ACC7_893CEE976E8F__INCLUDED_)
#define AFX_MEGADRAWERORGANIZE_H__7212CEBD_696C_47E0_ACC7_893CEE976E8F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MegaDrawerOrganize.h : header file
//
#include "../GUI/MegaDrawer.h"
#include "../GUI/MegaButton.h"
#include "../GUI/MegaComboBox.h"
#include "../RMSLib/Info.h"
/////////////////////////////////////////////////////////////////////////////
// CMegaDrawerOrganize window

class CMegaDrawerOrganize : public CMegaDrawer
{
// Construction
public:
	CMegaDrawerOrganize();

// Attributes
public:
	virtual void SetBitmaps(UINT uiSkinSingle, UINT uiSkinDouble, UINT uiSkinSingleUn, UINT uiSkinDoubleUn);

	void SetSites(map<CString, CSite> * pSites);
	void SelectCamera(char * pszCameraSign);
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMegaDrawerOrganize)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMegaDrawerOrganize();

	// Generated message map functions
protected:
	virtual void RepositionControls();

	void UpdateMemo();
	void UpdateBuildings(const CSite * pSite);
	void UpdateRooms(const CBuilding * pBuilding);
	void UpdateCameras(const CRoom * pRoom);
	void UpdateInfo(const CInfo * pInfo);

	//{{AFX_MSG(CMegaDrawerOrganize)
	afx_msg void OnCurrentCameraChange();
	afx_msg void OnSiteChange();
	afx_msg void OnBuildingChange();
	afx_msg void OnRoomChange();
	afx_msg void OnCameraChange();

	afx_msg void OnAddCamera();
	afx_msg void OnDelCamera();
	afx_msg void OnUpdateCamera();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	CMegaComboBox m_cbCurrent;
	CMegaComboBox m_cbSite, m_cbBuilding, m_cbRoom, m_cbCamera;
	CEdit m_ID, m_Pass, m_IP, m_Port;

	CMegaButton m_btnAdd, m_btnDelete, m_btnUpdate;

	map<CString, CSite> * m_pSites;

	// current values of camera
	CString m_strCurSite, m_strCurBuilding, m_strCurRoom, m_strCurCamera;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MEGADRAWERORGANIZE_H__7212CEBD_696C_47E0_ACC7_893CEE976E8F__INCLUDED_)
